<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>OWNONLY</title>
<style>
/**
 *    打印相关
*/ 
@media print 
{
    .notprint 
    {
        display:none;
    }
    .PageNext
    {
        page-break-after:always;
    }     
}
</style>
<script type="text/javascript">
function SetWinHeight(obj) 
{ 
	var win=obj; 
	var height = win.height;
	if (document.getElementById) 
	{ 
	if (win && !window.opera) 
	{ 
	if (win.contentDocument && win.contentDocument.body.offsetHeight) 
	height = win.contentDocument.body.offsetHeight; 
	else if(win.Document && win.Document.body.scrollHeight) 
	height = win.Document.body.scrollHeight; 
	} 
	}
	win.height = height + 10;
} 
</script>
</head>
<body> 
<div class="notprint">
<input type=button value='打印' onClick="window.print()" style="border:1px solid #000000;">
</div>  
    <?php foreach($order_item as $key=>$val):?>
        <div id="divPrint">
        <iframe src="<?php echo U('order/order_print_figure_god', 'noshow=1&order_item_id='.$val['id']);?>" width="960px" id="win<?php echo $val['id'];?>" name="win<?php echo $val['id'];?>" onload="Javascript:SetWinHeight(this)" frameborder="0" scrolling="no" ></iframe>
         <div class="pageNext"></div>
         </div>
        
    <?php endforeach;?>
<div class="notprint">
<input type=button value='打印' onClick="window.print()" style="border:1px solid #000000;">
</div>         
</body>
</html>